import http from '@/utils/request'

// 查询客户端列表
export function listClient(query) {
    return http({
        url: '/backstage/ddbsClient/',
        method: 'get',
        params: query
    })
}

// 查询客户端详细
export function getClient(id) {
    return http({
        url: '/backstage/ddbsClient/' + id,
        method: 'get'
    })
}

// 新增客户端
export function addClient(data) {
    return http({
        url: '/backstage/ddbsClient',
        method: 'post',
        data: data
    })
}

// 修改客户端
export function updateClient(data) {
    return http({
        url: '/backstage/ddbsClient',
        method: 'put',
        data: data
    })
}

// 删除客户端
export function delClient(ids) {
    return http({
        url: '/backstage/ddbsClient',
        method: 'delete',
        params:{ids}

    })
}
